<?php
class Orthographe_WordCounter_Block_Adminhtml_Renderer_OffreCommande extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
{
	public function render(Varien_Object $row)
	{
		if(Mage::helper('orthographewordcounter')->isCorrection($row->getData('type_cmd')))
			$data = Mage::helper('orthographewordcounter')->__("Commande type Correction");
		else if(Mage::helper('orthographewordcounter')->isTraduction($row->getData('type_cmd')))
			$data = Mage::helper('orthographewordcounter')->__("Commande type Traduction");
		else
			$data = Mage::helper('orthographewordcounter')->__("Commande type inconnu");
		return $data;
	}
}